import {createRouter, createWebHashHistory} from 'vue-router'
import HomeView from '../views/HomeView.vue'
//import SupervisorLoginPage from '../components/LoginPageSupervisor.vue'
import RegisterPage from '@/components/RegisterPage.vue'
import SupervisorPage from '../components/SupervisorPage.vue'
import ViewFeedbackHistoryPage from '../components/ViewFeedbackHistoryPage.vue'
import SubmitFeedbackPage from '../components/SubmitFeedbackPage.vue'
import SubmitFeedbackPage2 from '../components/SubmitFeedbackPage2.vue'
import LoginPageGrid from '../components/LoginPageGrid.vue'
import GridFeedBack from '../components/GridFeedBack.vue'
import GridFeedBack2 from '../components/GridFeedBack2.vue'

import LoginPageAdministrators from '../components/LoginPageAdministrators.vue'
import AdministerPage from '../components/AdministerPage.vue'
import AdministerPublicLIst from '../components/AdministerPublicLIst.vue'
import AdministerData from '../components/AdministerData.vue'
import AdministerDataAssign from '../components/AdministerDataAssign.vue'
import AdministerConfirmAqi from '../components/AdministerConfirmAqi.vue'
import AdministratorProvinceCheck from '../components/AdministratorProvinceCheck.vue'
import AdministratorAqiDistribution from '../components/AdministratorAqiDistribution.vue'
import AdministratorAqiTrend from '../components/AdministratorAqiTrend.vue'
import AdministratorOtherStats from '../components/AdministratorOtherStats.vue'
import AdministerPicture from '../components/AdministerPicture.vue'
import LoginPageSupervisor from "@/components/LoginPageSupervisor.vue";


const routes = [

    {
        path: '/supervisor/login',
        name: 'supervisorLogin',
        component: LoginPageSupervisor
    },
    {
        path: '/supervisor',
        name: 'supervisorLogin2',
        component: LoginPageSupervisor
    },
    {
        path: '/supervisor/register',
        name: 'register',
        component: RegisterPage
    },
    {
        path: '/supervisor/index',
        name: 'supervisor',
        component: SupervisorPage
    },
    {
        path: '/supervisor/viewFeedbackHistory',
        name: 'viewFeedbackHistory',
        component: ViewFeedbackHistoryPage
    },
    {
        path: '/supervisor/submitFeedback',
        name: 'submitFeedback',
        component: SubmitFeedbackPage
    },
    {
        path: '/supervisor/submitFeedback2',
        name: 'submitFeedback2',
        component: SubmitFeedbackPage2
    },
    {
        path: '/grid/login',
        name: 'loginPageGrid',
        component: LoginPageGrid
    },
    {
        path: '/grid/GridFeedBack',
        name: 'GridFeedBack',
        component: GridFeedBack
    },
	{
	    path: '/grid/GridFeedBack2',
	    name: 'GridFeedBack2',
	    component: GridFeedBack2
	},
    {
        path: '/admin/login',
        name: 'LoginPageAdministrators',
        component: LoginPageAdministrators
    },
    {
        path: '/admin',
        name: 'LoginPageAdministrators2',
        component: LoginPageAdministrators
    },
    {
        path: '/administrator/index',
        name: 'AdministerPage',
        component: AdministerPage,
        children: [
            {
                path: '/administrator/AdministerPublicLIst',
                name: 'AdministerPublicLIst',
                component: AdministerPublicLIst
            },
            {
                path: '/administrator/AdministerConfirmAqi',
                name: 'AdministerConfirmAqi',
                component: AdministerConfirmAqi
            },
            {
                path: '/administrator/AdministratorProvinceCheck',
                name: 'AdministratorProvinceCheck',
                component: AdministratorProvinceCheck
            },
            {
                path: '/administrator/AdministratorAqiDistribution',
                name: 'AdministratorAqiDistribution',
                component: AdministratorAqiDistribution
            },
            {
                path: '/administrator/AdministratorAqiTrend',
                name: 'AdministratorAqiTrend',
                component: AdministratorAqiTrend
            },
            {
                path: '/administrator/AdministratorOtherStats',
                name: 'AdministratorOtherStats',
                component: AdministratorOtherStats
            },
            {
                path: '/administrator/AdministerPicture',
                name: 'AdministerPicture',
                component: AdministerPicture
            },
            {
                path: '/administrator/AdministerData',
                name: 'AdministerData',
                component: AdministerData
            },
            {
                path: '/administrator/AdministerDataAssign',
                name: 'AdministerDataAssign',
                component: AdministerDataAssign
            },

        ]
    },


]

const router = createRouter({
    history: createWebHashHistory(),
    routes
})

export default router
